(provide 'init-etags-plus)

(add-to-list 'load-path "~/.emacs.d/biubiubiu/helm-etags-plus")
(require 'helm-etags+)


(autoload 'turn-on-ctags-auto-update-mode "ctags-update" "turn on 'ctags-auto-update-mode'." t)
(add-hook 'c-mode-common-hook  'turn-on-ctags-auto-update-mode)

(add-hook 'emacs-lisp-mode-hook  'turn-on-ctags-auto-update-mode)

(autoload 'ctags-update "ctags-update" "update TAGS using ctags" t)
(global-set-key "\C-cE" 'ctags-update)
(global-set-key "\M-." 'helm-etags+-select)
;;list all visited tags
(global-set-key "\M-*" 'helm-etags+-history)
;;go back directly
(global-set-key "\M-," 'helm-etags+-history-action-go-back)
;;go forward directly
(global-set-key "\M-/" 'helm-etags+-history-action-go-forward)
